package com.weipai.demo.mapper;


import com.weipai.demo.model.CarContent;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface CarContentMapper {
    int insert(CarContent carContent);

    Integer updateByPrimaryKey(CarContent carContent);

    Integer selectCarByPid(@Param("id") Integer id);

    Integer getBrandContent(CarContent carContent);

    List<Map<String, Object>> getCars(@Param("bid") Integer bid, @Param("tid") Integer tid,@Param("pid") Integer pid, @Param("start") Integer start,@Param("size") Integer size);

    Long getCarsNum(@Param("bid") Integer bid,@Param("tid") Integer tid,@Param("pid") Integer pid);

    Integer delById(@Param("id") Integer id);
}
